<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_brand_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_brand_id" data-rule="required" data-source="usedcar/brand/index" class="form-control selectpage" data-field="barname"  name="row[car_brand_id]" type="text" value="{$row.car_brand_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Year')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-year" data-rule="required" class="form-control" name="row[year]" type="text" value="{$row.year|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ownership_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ownership_num" data-rule="required" class="form-control" name="row[ownership_num]" type="number" value="{$row.ownership_num|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="required" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">价格:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" name="row[price]" type="text" value="{$row.price}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车辆ID:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carID" class="form-control" name="row[carID]" type="text" value="{$row.carID}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">牌照:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-carCard" class="form-control" name="row[carCard]" type="text" value="{$row.carCard}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">里程数:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-kilometres" class="form-control" name="row[kilometres]" type="text" value="{$row.kilometres}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">变速箱类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gearbox_type" class="form-control" name="row[gearbox_type]" type="text" value="{$row.gearbox_type}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">排量:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-displacement" class="form-control" name="row[displacement]" type="text" value="{$row.displacement}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车辆所有人性质:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-suoyouxingzhi" class="form-control" name="row[suoyouxingzhi]" type="text" value="{$row.suoyouxingzhi}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">品牌颜色:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-color" class="form-control" name="row[color]" type="text" value="{$row.color}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">燃料类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fuel" class="form-control" name="row[fuel]" type="text" value="{$row.fuel}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">出厂日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-factory_time" class="form-control" name="row[factory_time]" type="text" value="{$row.factory_time}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">初登日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_time" class="form-control" name="row[card_time]" type="text" value="{$row.card_time}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">过户截止日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_endtime" class="form-control" name="row[car_endtime]" type="text" value="{$row.car_endtime}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">年检有效期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nianjian_endtime" class="form-control" name="row[nianjian_endtime]" type="text" value="{$row.nianjian_endtime}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">交强险:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-jiaoqingxian" class="form-control" name="row[jiaoqingxian]" type="text" value="{$row.jiaoqingxian}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">车船税:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-chechuanshui" class="form-control" name="row[chechuanshui]" type="text" value="{$row.chechuanshui}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">钥匙情况:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-yaoshiqingkuang" class="form-control" name="row[yaoshiqingkuang]" type="text" value="{$row.yaoshiqingkuang}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否有转移登记:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shifoudengji" class="form-control" name="row[shifoudengji]" type="text" value="{$row.shifoudengji}">
        </div>
    </div>


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
